package com.wondertek.poms.dao.repo;

import com.wondertek.poms.dao.po.SecondClassify;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author chenjijiang
 * @description
 */
@Repository
public interface ISecondClassifyDao extends JpaRepository<SecondClassify,Long> {

	List<SecondClassify> findAllByContentId(String contentId);

	@Transactional
	void deleteByContentId(String contentId);
}
